﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="Search-Customer.aspx.cs" Inherits="Search_Customer" %>

<%@ Register Assembly="obout_ComboBox" Namespace="Obout.ComboBox" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">


<div>
    <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Large" 
                    Text=" Danh Sách Khách Hàng"  ></asp:Label>
</div>

<div>
    
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lblID" runat="server" Text="Mã Số Khách Hàng"></asp:Label>
            </asp:TableCell>

            <asp:TableCell>
                <cc1:ComboBox ID="cbxID" runat="server" DataTextField="ID" DataValueField="ID" AllowCustomText="True">
                </cc1:ComboBox>
            </asp:TableCell>

            <asp:TableCell>
                <asp:Label ID="lblName" runat="server" Text="Họ và Tên"></asp:Label>
            </asp:TableCell>

            <asp:TableCell>
                <cc1:ComboBox ID="cbxName" runat="server" DataTextField="Name" DataValueField="Name" AllowCustomText="True" EnableVirtualScrolling="True" FilterType="Contains">                
                </cc1:ComboBox>
            </asp:TableCell>

            <asp:TableCell>
                <asp:Label ID="lblTelephone" runat="server" Text="Số Điện Thoại"></asp:Label>
            </asp:TableCell>

            <asp:TableCell>
                <cc1:ComboBox ID="cbxTelePhone" runat="server" DataTextField="TelePhone" DataValueField="TelePhone" AllowCustomText="True" EnableVirtualScrolling="True" FilterType="Contains">
                </cc1:ComboBox>
            </asp:TableCell>

        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell>
                <asp:Label ID="lblAddress" runat="server" Text="Địa chỉ"></asp:Label>
            </asp:TableCell>

            <asp:TableCell>
                <cc1:ComboBox ID="cbxAddress" runat="server" DataTextField="Address" DataValueField="Address" AllowCustomText="True" EnableVirtualScrolling="True" FilterType="Contains">
                </cc1:ComboBox>
            </asp:TableCell>

            <asp:TableCell>
                <asp:Label ID="lblEmail" runat="server" Text="Email"></asp:Label>
            </asp:TableCell>

            <asp:TableCell>
                <cc1:ComboBox ID="cbxEmail" runat="server" DataTextField="Email" DataValueField="Email" AllowCustomText="True" EnableVirtualScrolling="True" FilterType="Contains">
                </cc1:ComboBox>
            </asp:TableCell>

            <asp:TableCell>
                <asp:Label ID="lblPerson" runat="server" Text="Người Giới Thiệu"></asp:Label>
            </asp:TableCell>
            
            <asp:TableCell>
                <cc1:ComboBox ID="cbxPerson" runat="server" DataTextField="Person" DataValueField="Person" AllowCustomText="True" EnableVirtualScrolling="True" FilterType="Contains">
                </cc1:ComboBox>
            </asp:TableCell>

        </asp:TableRow>
    </asp:Table>

    <asp:Button ID="btnSearch" runat="server" Text="Tìm kiếm" CssClass="button" 
        onclick="btnSearch_Click" />

</div>

<div>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" >        
        <Columns>
        <asp:BoundField DataField="ID" HeaderText="Mã Số Khách hàng" SortExpression="ID" />
        <asp:TemplateField HeaderText="Họ và Tên" SortExpression= "Name" >
            <ItemTemplate  >
                <a href='/Customer-Profile.aspx?id=<%# Eval("ID") %>'><%# Eval("Name") %></a>                        
            </ItemTemplate>
        </asp:TemplateField>        
        <asp:BoundField DataField="Telephone" HeaderText="Số Điện Thoại" SortExpression="Telephone" />
        <asp:BoundField DataField="Address" HeaderText="Địa Chỉ" SortExpression="Address" />
        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
        <asp:BoundField DataField="Person" HeaderText="Người Giới Thiệu" SortExpression="Person" />
        </Columns>
    </asp:GridView>
</div>



</asp:Content>

